#encoding=utf-8
#输出每个字符出现的次数
def count(s):
    '''unittest
    >>> count("abcdefagf")
    24
    '''
    s1 = s.lower()
    
    m = []
    n = []
    for i in xrange(len(s1)):
      if s[i] not in m:
          m.append(s[i])
          n.append(1)
      else:
          n[m.index(s[i])] += 1
          
    for i in range(len(m)):
        print m[i] + " : " + str(n[i]) + ",",
    
import doctest
doctest.testmod()